//
//  UIViewController+CNSameControllerInStack.m
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2020/3/18.
//  Copyright © 2020 CSDN. All rights reserved.
//

#import "UIViewController+CNSameControllerInStack.h"
#import <objc/runtime.h>
const void *const kSameConfirmPropertys = &kSameConfirmPropertys;

@implementation UIViewController (CNSameControllerInStack)

- (NSDictionary *)sameConfirmPropertys {
    return objc_getAssociatedObject(self, &kSameConfirmPropertys);
}

- (void)setSameConfirmPropertys:(NSDictionary *)sameConfirmPropertys {
    objc_setAssociatedObject(self, kSameConfirmPropertys, sameConfirmPropertys, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (void)gobackIfAlreadyInStackConfirmBy:(NSDictionary *)propertys {
    self.sameConfirmPropertys = propertys;
}

@end
